<?php
include("includes/menu.php");
	class header{
		
		protected $menu_html;
		
		public function showHtml(){			
			$this->menuHtml();
			
			echo 
			'<div id="header">
				<div id="logo">
					<a href="#">Biblioteca PHP</a></div>'.
					$this->menu_html.
				'</div>';
		}
		
		public function menuHtml(){
			$menu = new menu();
			if(!isset ($_GET["p"]))
				$opcao = 'home';
			else
				$opcao = $_GET["p"];
			$this->menu_html = $menu->showHtml($opcao);
		}
	}
?>